package com.ffggffgfv.backend.entity;

import java.util.Date;

/**
 * 库存变更日志实体类
 */
public class StockLog {

    private Long id;              // 主键ID
    private Long productId;       // 商品ID
    private Long shelfId;         // 货架ID
    private Integer changeType;   // 变更类型（1-销售 2-补货 3-调整 4-报损）
    private Integer quantity;     // 变更数量（正数增加，负数减少）
    private Long operatorId;      // 操作人ID
    private Integer operatorType; // 操作人类型（1-系统 2-管理员 3-用户）
    private String reason;        // 变更原因
    private Date createTime;      // 创建时间

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Long getShelfId() {
        return shelfId;
    }

    public void setShelfId(Long shelfId) {
        this.shelfId = shelfId;
    }

    public Integer getChangeType() {
        return changeType;
    }

    public void setChangeType(Integer changeType) {
        this.changeType = changeType;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public Long getOperatorId() {
        return operatorId;
    }

    public void setOperatorId(Long operatorId) {
        this.operatorId = operatorId;
    }

    public Integer getOperatorType() {
        return operatorType;
    }

    public void setOperatorType(Integer operatorType) {
        this.operatorType = operatorType;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
